package com.wealth.payment.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.payment.entity.PaymentAccount;
import com.wealth.payment.repository.PaymentAccountDao;
import com.wealth.payment.service.IPaymentAccountService;

import iaas.service.impl.BaseServiceImpl;

/**
 * 
 * @author CHAN
 */
@Component
public class PaymentAccountServiceImpl extends BaseServiceImpl<PaymentAccount> implements IPaymentAccountService{

	@Autowired
	private PaymentAccountDao accountDao;

	/**
	 * 查询当前企业下支付方式，1：支付宝，2：微信支付，3：其他（免费）
	 */
	@Override
	public PaymentAccount findByCorpIdAndPaymode(Long corpid,Integer paymode) throws Exception {
		return accountDao.findByCorpIdAndPaymode(corpid,paymode);
	}
	
	
}
